<template>
    <el-input v-model="searchText" placeholder="请输入搜索的内容" style="width: 80%; height: 70%"></el-input>
    <el-button type="primary" style="width: 15%; height: 70%" @click="$emit('search', searchText)">
        搜索
    </el-button>
</template>

<script lang="ts" setup>
import { ref } from "vue";

const searchText = ref("");


</script>